package com.zlq.cn.dto.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

@Data
public class SendSmsParam {

    @ApiModelProperty(value = "短信类型；登录：001", required = true)
    @NotNull(message = "短信类型不能为空")
    private String smsType;

    @ApiModelProperty(value = "手机号码", required = true)
    @NotNull(message = "手机号码不能为空")
    @Length(min = 11, max = 11, message = "手机号码格式错误")
    private String phone;
}
